<script setup lang="ts">
import { RouterLink, useRouter } from "vue-router";

const router = useRouter();
</script>

<template>
  <main>
    <router-link class="link" v-for="item in router.options.routes" :key="item.path" :to="item.path">
      {{ item.name }}</router-link>
  </main>
</template>

<style lang="less" scoped>
.link{
  display: block;
}
</style>
